-- GENERATED SPELL FOR [Stonewing Tracker] --


function spell0_16316(pUnit, Event) --@Stone Skin,Self--
pUnit:FullCastSpellOnTarget(5810,pUnit)
pUnit:RegisterEvent('Sorts_16316', 6328, 1)
end

function Sorts_16316(pUnit, Event)
local choix_sorts_16316 = math.random(0, 0)
if choix_sorts_16316 == 0 then
pUnit:RegisterEvent('spell0_16316', 1, 1)
end
end

function mob16316_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_16316', math.random(1500, 3000), 1)
end

function mob16316_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob16316_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob16316_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(16316, 1, 'mob16316_Action')
RegisterUnitEvent(16316, 2, 'mob16316_Leave')
RegisterUnitEvent(16316, 3, 'mob16316_Kill')
RegisterUnitEvent(16316, 4, 'mob16316_Die')
